var t = [], e = function() {
    for (var e = wx.getSharedCanvas().getContext("2d"), l = 0; l < t.length; l++) {
        var a = parseInt(t[l]).toString(2), n = a.length, o = 32 - n;
        e.fillStyle = "#00000000";
        for (var r = 0; r < o; r++) e.fillRect(r, l, 1, 1);
        for (var i = 0; i < n; i++) "0" === a[i] ? e.fillStyle = "#00000000" : e.fillStyle = "#FFFFFFFF", 
        e.fillRect(o + i, l, 1, 1);
    }
}, l = function() {
    wx.getFriendCloudStorage({
        keyList: [ "uid" ],
        success: function(l) {
            var a = l.data.length;
            t = [];
            for (var n = 0; n < a; n++) {
                var o = l.data[n].KVDataList[0];
                t.push(o.value);
            }
            e();
        },
        fail: function() {
            console.log("getFriendCloudStorage failed: "), console.log(arguments);
        }
    });
};

wx.onMessage(function(t) {
    "getFriends" === t.cmd && l();
});